home *** CD-ROM | disk | FTP | other *** search
/ Minami 78 / MINAMI78.iso / Extra / winamp53.exe / $R0 / Winamp Modern / scripts / configtabs.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2005-09-15  |  12KB  |  449 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global ConfigAttribute ConfigAttribute17;
  6. Global ConfigAttribute ConfigAttribute18;
  7. Global ConfigAttribute ConfigAttribute19;
  8. Global ConfigAttribute ConfigAttribute20;
  9. Global ConfigAttribute ConfigAttribute21;
  10. Global ConfigAttribute ConfigAttribute22;
  11. Global ConfigAttribute ConfigAttribute23;
  12. Global ConfigAttribute ConfigAttribute24;
  13. Global ConfigAttribute ConfigAttribute25;
  14. Global ConfigAttribute ConfigAttribute26;
  15. Global ConfigAttribute ConfigAttribute27;
  16. Global ConfigAttribute ConfigAttribute28;
  17. Global ConfigAttribute ConfigAttribute29;
  18. Global ConfigAttribute ConfigAttribute30;
  19. Global ConfigAttribute ConfigAttribute31;
  20. Global ConfigAttribute ConfigAttribute32;
  21. Global ConfigAttribute ConfigAttribute33;
  22. Global ConfigAttribute ConfigAttribute34;
  23. Global ConfigAttribute ConfigAttribute35;
  24. Global ConfigAttribute ConfigAttribute36;
  25. Global ConfigAttribute ConfigAttribute37;
  26. Global ConfigAttribute ConfigAttribute38;
  27. Global ConfigAttribute ConfigAttribute39;
  28. Global ConfigAttribute ConfigAttribute40;
  29. Global ConfigAttribute ConfigAttribute41;
  30. Global ConfigAttribute ConfigAttribute42;
  31. Global ConfigAttribute ConfigAttribute43;
  32. Global Group Group116;
  33. Global Group Group117;
  34. Global Group Group118;
  35. Global Group Group119;
  36. Global Group Group120;
  37. Global Group Group121;
  38. Global Group Group122;
  39. Global Group Group123;
  40. Global Group Group124;
  41. Global Group Group125;
  42. Global Group Group126;
  43. Global Group Group127;
  44. Global Group Group128;
  45. Global Layer Layer129;
  46. Global Layer Layer130;
  47. Global Layer Layer131;
  48. Global Button Button132;
  49. Global Button Button133;
  50. Global Group Group134;
  51. Global Group Group135;
  52. Global Group Group136;
  53. Global GuiObject GuiObject137;
  54. Global Layout Layout138;
  55. Global Int Int139;
  56. Global Boolean Boolean140;
  57. Global Timer Timer141;
  58.  
  59. Function func242();
  60. Function func2784(Int 0);
  61. Function func2959(Int 0);
  62. Function func3255(Int 0);
  63. Function func3565(Int 0);
  64. Function func4201(Int 0);
  65. Function func4888();
  66.  
  67. func242()
  68. {
  69. ConfigAttribute ConfigAttribute74;
  70. ConfigItem ConfigItem67;
  71. ConfigItem ConfigItem64;
  72. ConfigAttribute ConfigAttribute73;
  73. ConfigItem ConfigItem52;
  74. ConfigAttribute ConfigAttribute77;
  75. ConfigItem ConfigItem69;
  76. ConfigAttribute ConfigAttribute84;
  77. ConfigAttribute ConfigAttribute79;
  78. ConfigItem ConfigItem55;
  79. ConfigAttribute ConfigAttribute78;
  80. ConfigAttribute ConfigAttribute72;
  81. ConfigItem ConfigItem49;
  82. ConfigItem ConfigItem46;
  83. ConfigItem ConfigItem61;
  84. ConfigItem ConfigItem58;
  85. ConfigAttribute ConfigAttribute75;
  86. ConfigItem ConfigItem71;
  87. ConfigItem46 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  88. ConfigItem49 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  89. ConfigItem52 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  90. ConfigItem55 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  91. ConfigItem58 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  92. ConfigItem61 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  93. ConfigItem64 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  94. ConfigItem67 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
  95. ConfigItem69 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
  96. ConfigItem71 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
  97. ConfigAttribute72 = ConfigItem69.newAttribute(( "Winamp\ Modern"), ( ""));
  98. ConfigAttribute72.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
  99. ConfigAttribute73 = ConfigItem46.newAttribute(( "Drawers"), ( ""));
  100. ConfigAttribute73.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
  101. ConfigAttribute74 = ConfigItem46.newAttribute(( "Menus"), ( ""));
  102. ConfigAttribute74.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
  103. ConfigAttribute75 = ConfigItem46.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
  104. ConfigAttribute75.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
  105. ConfigAttribute77 = ConfigItem46.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
  106. ConfigAttribute77.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
  107. ConfigAttribute78 = ConfigItem46.newAttribute(( "Notifications"), ( ""));
  108. ConfigAttribute78.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
  109. ConfigAttribute79 = ConfigItem46.newAttribute(( "Songticker"), ( ""));
  110. ConfigAttribute79.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
  111. ConfigAttribute17 = ConfigItem49.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
  112. ConfigAttribute18 = ConfigItem49.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
  113. ConfigAttribute84 = ConfigItem49.newAttribute(( "sep1"), ( ""));
  114. ConfigAttribute84.setData(( "\-"));
  115. ConfigAttribute21 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
  116. ConfigAttribute22 = ConfigItem49.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
  117. ConfigAttribute23 = ConfigItem49.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
  118. if(( ConfigAttribute21.getData() == ( "1"))) {
  119. ConfigAttribute21.onDataChanged();
  120. } else {
  121. ConfigAttribute22.onDataChanged();
  122. }
  123. ConfigAttribute25 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
  124. ConfigAttribute26 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
  125. ConfigAttribute27 = ConfigItem52.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
  126. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep1"), ( ""));
  127. ConfigAttribute84.setData(( "\-"));
  128. ConfigAttribute19 = ConfigItem46.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
  129. ConfigAttribute20 = ConfigItem46.newAttribute(( "Detach\ Video\ Window"), ( "0"));
  130. ConfigAttribute24 = ConfigItem71.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
  131. ConfigAttribute84 = ConfigItem46.newAttribute(( "sep2"), ( ""));
  132. ConfigAttribute84.setData(( "\-"));
  133. ConfigAttribute31 = ConfigItem46.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
  134. ConfigAttribute28 = ConfigItem55.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
  135. ConfigAttribute29 = ConfigItem55.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
  136. ConfigAttribute30 = ConfigItem55.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
  137. ConfigAttribute33 = ConfigItem58.newAttribute(( "Open\ Context\ Menu"), ( "1"));
  138. ConfigAttribute32 = ConfigItem58.newAttribute(( "Open\ Configuration"), ( "0"));
  139. ConfigAttribute36 = ConfigItem61.newAttribute(( "Show\ always"), ( "0"));
  140. ConfigAttribute35 = ConfigItem61.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
  141. ConfigAttribute34 = ConfigItem61.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
  142. ConfigAttribute37 = ConfigItem61.newAttribute(( "Never\ show"), ( "1"));
  143. ConfigAttribute84 = ConfigItem61.newAttribute(( "sep1"), ( ""));
  144. ConfigAttribute84.setData(( "\-"));
  145. ConfigAttribute41 = ConfigItem61.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
  146. ConfigAttribute38 = ConfigItem67.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
  147. ConfigAttribute39 = ConfigItem67.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
  148. ConfigAttribute40 = ConfigItem67.newAttribute(( "Notifications\ display\ time"), ( "2000"));
  149. ConfigAttribute42 = ConfigItem64.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
  150. ConfigAttribute43 = ConfigItem64.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
  151. return Null;
  152. }
  153.  
  154. System.onScriptLoaded()
  155. {
  156. Int Int168;
  157. Int Int164;
  158. Int Int163;
  159. Int Int166;
  160. func242();
  161. Group116 = System.getScriptGroup();
  162. Layout138 = Group116.getParentLayout();
  163. Group119 = Group116.findObject(( "config\.tabs"));
  164. Group120 = Group116.findObject(( "config\.tab\.eq\.on"));
  165. Group121 = Group116.findObject(( "config\.tab\.eq\.off"));
  166. Group122 = Group116.findObject(( "config\.tab\.options\.on"));
  167. Group123 = Group116.findObject(( "config\.tab\.options\.off"));
  168. Group124 = Group116.findObject(( "config\.tab\.colorthemes\.on"));
  169. Group125 = Group116.findObject(( "config\.tab\.colorthemes\.off"));
  170. GuiObject137 = Group116.findObject(( "colorthemes"));
  171. Group117 = Group116.findObject(( "player\.main"));
  172. Group118 = Group116.findObject(( "AVSGroup"));
  173. Group126 = Group116.findObject(( "player\.normal\.drawer\.eq"));
  174. Group127 = Group116.findObject(( "player\.normal\.drawer\.options"));
  175. Group128 = Group116.findObject(( "player\.normal\.drawer\.colorthemes"));
  176. Layer129 = Group116.findObject(( "mousetrapTabEQ"));
  177. Layer130 = Group116.findObject(( "mousetrapTabOPTIONS"));
  178. Layer131 = Group116.findObject(( "mousetrapTabCOLORTHEMES"));
  179. Button132 = Group116.findObject(( "drawer\.button\.close"));
  180. Button133 = Group116.findObject(( "drawer\.button\.open"));
  181. Group134 = Group116.findObject(( "player\.normal\.drawer"));
  182. Group135 = Group116.findObject(( "player\.normal\.drawer\.shadow"));
  183. Group136 = Group116.findObject(( "player\.normal\.drawer\.content"));
  184. Int163 = Group120.getWidth();
  185. Int164 = Group122.getWidth();
  186. Int166 = ( Int163 - 3);
  187. Int168 = ( ( Int163 + Int164) - 6);
  188. Group122.setXmlParam(( "x"), System.integerToString(Int166));
  189. Group123.setXmlParam(( "x"), System.integerToString(Int166));
  190. Group125.setXmlParam(( "x"), System.integerToString(Int168));
  191. Group124.setXmlParam(( "x"), System.integerToString(Int168));
  192. Int139 = 1;
  193. func2784(System.getPrivateInt(( "winamp5"), ( "ConfigTab"), 1));
  194. Int139 = 0;
  195. if(System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0)) {
  196. func3255(0);
  197. func4201(1);
  198. } else {
  199. func4201(0);
  200. }
  201. Boolean140 = 1;
  202. Timer141 = ( new Timer);
  203. Timer141.setDelay(250);
  204. return Null;
  205. }
  206.  
  207. System.onScriptUnloading()
  208. {
  209. delete Timer141;
  210. return Null;
  211. }
  212.  
  213. func2784(Int 0)
  214. {
  215. Group120.hide();
  216. Group122.hide();
  217. Group124.hide();
  218. if(( Int174 == 1)) {
  219. Group120.show();
  220. }
  221. if(( Int174 == 2)) {
  222. Group122.show();
  223. }
  224. if(( Int174 == 3)) {
  225. Group124.show();
  226. }
  227. func2959(Int174);
  228. System.setPrivateInt(( "winamp5"), ( "ConfigTab"), Int174);
  229. func4888();
  230. return Null;
  231. }
  232.  
  233. func2959(Int 0)
  234. {
  235. if(( Int175 == 1)) {
  236. Group126.show();
  237. Group127.hide();
  238. Group128.hide();
  239. }
  240. if(( Int175 == 2)) {
  241. Group126.hide();
  242. Group127.show();
  243. Group128.hide();
  244. }
  245. if(( Int175 == 3)) {
  246. Group126.hide();
  247. Group127.hide();
  248. Group128.show();
  249. }
  250. return Null;
  251. }
  252.  
  253. Layer129.onLeftButtonDown(int x, int y)
  254. {
  255. func2784(1);
  256. return Null;
  257. }
  258.  
  259. Layer130.onLeftButtonDown(int x, int y)
  260. {
  261. func2784(2);
  262. return Null;
  263. }
  264.  
  265. Layer131.onLeftButtonDown(int x, int y)
  266. {
  267. func2784(3);
  268. return Null;
  269. }
  270.  
  271. func3255(Int 0)
  272. {
  273. Button133.hide();
  274. Button132.show();
  275. Layout138.beforeRedock();
  276. if(( Int182 && ( ConfigAttribute18.getData() == ( "1")))) {
  277. System.lockUI();
  278. Group134.setTargetX(Group134.getGuiX());
  279. Group134.setTargetY(( - 147));
  280. Group134.setTargetW(Group134.getGuiW());
  281. Group134.setTargetH(Group134.getGuiH());
  282. Group134.setTargetSpeed(1);
  283. Group134.gotoTarget();
  284. } else {
  285. Group134.setXmlParam(( "y"), ( "\-147"));
  286. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
  287. GuiObject137.show();
  288. func4201(1);
  289. func4888();
  290. Layout138.redock();
  291. }
  292. Group135.show();
  293. return Null;
  294. }
  295.  
  296. func3565(Int 0)
  297. {
  298. Layout138.beforeRedock();
  299. GuiObject137.hide();
  300. Button132.hide();
  301. Button133.show();
  302. if(( Int186 && ( ConfigAttribute18.getData() == ( "1")))) {
  303. System.lockUI();
  304. Group134.setTargetX(Group134.getGuiX());
  305. Group134.setTargetY(( - 263));
  306. Group134.setTargetW(Group134.getGuiW());
  307. Group134.setTargetH(Group134.getGuiH());
  308. Group134.setTargetSpeed(1);
  309. Group134.gotoTarget();
  310. } else {
  311. Group134.setXmlParam(( "y"), ( "\-263"));
  312. Group135.hide();
  313. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  314. func4201(0);
  315. func4888();
  316. Layout138.redock();
  317. }
  318. return Null;
  319. }
  320.  
  321. Button132.onLeftClick()
  322. {
  323. func3565(1);
  324. return Null;
  325. }
  326.  
  327. Button133.onLeftClick()
  328. {
  329. func3255(1);
  330. return Null;
  331. }
  332.  
  333. Group134.onTargetReached()
  334. {
  335. if(Button132.isVisible()) {
  336. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 1);
  337. GuiObject137.show();
  338. func4201(1);
  339. } else {
  340. Group135.hide();
  341. System.setPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  342. func4201(0);
  343. }
  344. func4888();
  345. Layout138.redock();
  346. System.unlockUI();
  347. return Null;
  348. }
  349.  
  350. func4201(Int 0)
  351. {
  352. Int Int190;
  353. Int190 = 0;
  354. if(( ConfigAttribute25.getData() == ( "0"))) {
  355. Int190 = 17;
  356. }
  357. if(Int189) {
  358. Layout138.snapAdjust(0, 0, 0, ( 0 + Int190));
  359. } else {
  360. Layout138.snapAdjust(0, 0, 0, ( 116 + Int190));
  361. }
  362. return Null;
  363. }
  364.  
  365. ConfigAttribute25.onDataChanged()
  366. {
  367. Int Int194;
  368. Int Int193;
  369. Int193 = 0;
  370. if(( ConfigAttribute25.getData() == ( "0"))) {
  371. Int193 = 17;
  372. }
  373. Layout138.beforeRedock();
  374. Int194 = System.getPrivateInt(( "winamp5"), ( "DrawerOpen"), 0);
  375. if(Int194) {
  376. Layout138.snapAdjust(0, 0, 0, ( 0 + Int193));
  377. } else {
  378. Layout138.snapAdjust(0, 0, 0, ( 116 + Int193));
  379. }
  380. Layout138.redock();
  381. return Null;
  382. }
  383.  
  384. Layout138.onResize(int x, int y, int w, int h)
  385. {
  386. Int Int200;
  387. Int200 = ( ( w / 2) - 163);
  388. Group136.setXmlParam(( "x"), System.integerToString(Int200));
  389. return Null;
  390. }
  391.  
  392. ConfigAttribute24.onDataChanged()
  393. {
  394. if(Int139) {
  395. return Null;
  396. }
  397. Int139 = 1;
  398. if(( ConfigAttribute24.getData() == ( "1"))) {
  399. Layout138.getContainer().switchToLayout(( "normal"));
  400. Timer141.start();
  401. }
  402. if(( ConfigAttribute24.getData() == ( "0"))) {
  403. func3565(1);
  404. }
  405. Int139 = 0;
  406. return Null;
  407. }
  408.  
  409. Timer141.onTimer()
  410. {
  411. Timer141.stop();
  412. func2784(1);
  413. if(Button133.isVisible()) {
  414. func3255(1);
  415. }
  416. return Null;
  417. }
  418.  
  419. func4888()
  420. {
  421. Int Int174;
  422. if(Int139) {
  423. return Null;
  424. }
  425. Int139 = 1;
  426. if(( ( Int174 == 1) && ( ! Button133.isVisible()))) {
  427. ConfigAttribute24.setData(( "1"));
  428. } else {
  429. ConfigAttribute24.setData(( "0"));
  430. }
  431. Int139 = 0;
  432. return Null;
  433. }
  434.  
  435. System.onKeyDown(String key)
  436. {
  437. if(( key == ( "alt\+g"))) {
  438. if(( ConfigAttribute24.getData() == ( "0"))) {
  439. ConfigAttribute24.setData(( "1"));
  440. } else {
  441. ConfigAttribute24.setData(( "0"));
  442. }
  443. complete;
  444. }
  445. return Null;
  446. }
  447.  
  448.  
  449.